<?php
namespace app\admin\model;

use think\Model;
use think\Db;
/**
* 合同模型
*/
class ContractModel extends Model
{
	public function getClient()
	{
		return $this->belongsTo('ClientModel','client_id')->bind(['clientname'=>'name']);
	}

	public function getUser()
	{
		return $this->belongsTo('UserModel','principal_id');
	}
}